﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessObject;
using Entity;
using DataAccess;

namespace StudentAttendanceChecking
{
    public partial class frmNewBranch : Form
    {
        public frmNewBranch()
        {
            InitializeComponent();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
           
            Branch br = new Branch();
            br.BranchName = txtBranchName.Text;
            BranchDA branch = new BranchDA();
            if (branch.CreateNew(br) == true)
            {
                MessageBox.Show("Insert complete !");
            }else
                MessageBox.Show("Insert Error !");
            

        }
    }
}
